<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>neo4j入门 | Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="Windows安装　　1. 启动服务$ cd neo4j-community-2.2.5$ bin\Neo4j.bat console  (注意，测试发现不可进入bin目录后再执行Neo4j.bat console)
Starting Neo4j Server…WARNING: not changing userprocess [70299]… waiting for server to be r">
<meta property="og:type" content="article">
<meta property="og:title" content="neo4j入门">
<meta property="og:url" content="http://yoursite.com/2016/01/17/database/3.neo4j入门/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="Windows安装　　1. 启动服务$ cd neo4j-community-2.2.5$ bin\Neo4j.bat console  (注意，测试发现不可进入bin目录后再执行Neo4j.bat console)
Starting Neo4j Server…WARNING: not changing userprocess [70299]… waiting for server to be r">
<meta property="og:image" content="http://yoursite.com/images/cypher.png">
<meta property="og:image" content="http://yoursite.com/images/match-1.png">
<meta property="og:image" content="http://yoursite.com/images/match-2.png">
<meta property="og:image" content="http://yoursite.com/images/match-3.png">
<meta property="og:image" content="http://yoursite.com/images/match-4.png">
<meta property="og:updated_time" content="2016-01-29T17:47:36.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="neo4j入门">
<meta name="twitter:description" content="Windows安装　　1. 启动服务$ cd neo4j-community-2.2.5$ bin\Neo4j.bat console  (注意，测试发现不可进入bin目录后再执行Neo4j.bat console)
Starting Neo4j Server…WARNING: not changing userprocess [70299]… waiting for server to be r">
  
    <link rel="alternative" href="/atom.xml" title="Hexo" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  <link rel="stylesheet" href="/css/style.css" type="text/css">
  

</head>
<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Hexo</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" results="0" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-database/3.neo4j入门" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2016/01/17/database/3.neo4j入门/" class="article-date">
  <time datetime="2016-01-17T13:50:00.000Z" itemprop="datePublished">2016-01-17</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/database/">database</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      neo4j入门
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="Windows_u5B89_u88C5"><a href="#Windows_u5B89_u88C5" class="headerlink" title="Windows安装"></a>Windows安装</h2><p>　　1. 启动服务<br>$ cd neo4j-community-2.2.5<br>$ bin\Neo4j.bat console  (注意，测试发现不可进入bin目录后再执行Neo4j.bat console)</p>
<p>Starting Neo4j Server…WARNING: not changing user<br>process [70299]… waiting for server to be ready…… OK.<br><a href="http://localhost:7474/" target="_blank" rel="external">http://localhost:7474/</a> is ready.</p>
<p>　　2. 默认登录名和密码：neo4j/neo4j：如果忘记密码，则需删除文件 data/dbms/authorization.<br>　　3. 注册成开机自动启动的服务：bin\Neo4jInstaller.bat install<br>　　只能通过localhost:7474访问，不能通过ip:port访问，why????</p>
<h2 id="u6982_u5FF5"><a href="#u6982_u5FF5" class="headerlink" title="概念"></a>概念</h2><p>　　Labels：给node分配标签，nodes根据label进行分组<br>　　Relationships: 有方向，类型，属性</p>
<h2 id="Cypher"><a href="#Cypher" class="headerlink" title="Cypher"></a>Cypher</h2><p>　　进入如下所示的学习路径：<img src="/images/cypher.png" alt="cypher.png"></p>
<h4 id="CREATE"><a href="#CREATE" class="headerlink" title="CREATE"></a>CREATE</h4><p>　　CREATE (ee:Person { name: “Emil”, from: “Sweden”, klout: 99 })<br>　　- (): 声明为一个node<br>　　- ee:Person 变量ee和标签Person赋予新node，可以声明多个标签（label）形如：ee:Person:Man的形式<br>　　- {} 给node添加属性</p>
<h4 id="MATCH"><a href="#MATCH" class="headerlink" title="MATCH"></a>MATCH</h4><p>　　查询表示Emil的节点：MATCH (ee:Person) WHERE ee.name = “Emil” RETURN ee;<br>　　- MATCH 指定一个关于nodes 和 relationships 的模式<br>　　- (ee:Person) 根据标签（Label）获取单个节点模式，并将该节点分配给变量ee<br>　　- WHERE 限制返回结果<br>　　- ee.name = “Emil” name属性值为Emil<br>　　- RETURN 请求指定的返回结果<br>　　等价于：MATCH (tom {name: “Emil”}) RETURN tom</p>
<p>　　返回前10个人：MATCH (people:Person) RETURN people.name LIMIT 10</p>
<p>　　查询90年代发行的电影：MATCH (nineties:Movie) WHERE nineties.released &gt; 1990 AND nineties.released &lt; 2000 RETURN nineties.title</p>
<p>　　查询Tom Hanks演过的电影：MATCH (tom:Person {name: “Tom Hanks”})-[:ACTED_IN]-&gt;(tomHanksMovies) RETURN tom,tomHanksMovies</p>
<p>　　查询导演了Cloud Atlas（云图）的人<br>MATCH (cloudAtlas {title: “Cloud Atlas”})&lt;-[:DIRECTED]-(directors) RETURN directors.name<br>MATCH (directors)-[:DIRECTED]-&gt;(cloudAtlas {title: “Cloud Atlas”}) RETURN directors.name</p>
<p>　　查询和Tom Hanks参演了相同电影的人<br>MATCH (tom:Person {name:”Tom Hanks”})-[:ACTED_IN]-&gt;(m)&lt;-[:ACTED_IN]-(coActors) RETURN coActors.name</p>
<p>　　查询与Cloud Atlas（云图）有关的人，包括导演，演员等。<br>MATCH (people:Person)-[relatedTo]-(:Movie {title: “Cloud Atlas”}) RETURN people.name, Type(relatedTo), relatedTo<br><img src="/images/match-1.png" alt="match-1.png"><img src="/images/match-2.png" alt="match-2.png"></p>
<p>　　查询和Kevin Bacon的1到4度关系的电影和演员<br>MATCH (bacon:Person {name:”Kevin Bacon”})-[*1..4]-(hollywood)  RETURN DISTINCT hollywood</p>
<p>　　查询Kevin Bacon和Meg Ryan之间的最短路径<br>MATCH p=shortestPath(<br>  (bacon:Person {name:”Kevin Bacon”})-[*]-(meg:Person {name:”Meg Ryan”})<br>)<br>RETURN p<br><img src="/images/match-3.png" alt="match-3.png"></p>
<p>　　查询和Tom Hanks未合作过，但是和Tom Hanks的合作者合作过的人<br>MATCH (tom:Person {name:”Tom Hanks”})-[:ACTED_IN]-&gt;(m)&lt;-[:ACTED_IN]-(coActors),<br>      (coActors)-[:ACTED_IN]-&gt;(m2)&lt;-[:ACTED_IN]-(cocoActors)<br>WHERE NOT (tom)-[:ACTED_IN]-&gt;(m2)<br>RETURN cocoActors.name AS Recommended, count(*) AS Strength ORDER BY Strength DESC</p>
<p>　　查找能够把Tom Hanks介绍给Tom Cruise的人<br>MATCH (tom:Person {name:”Tom Hanks”})-[:ACTED_IN]-&gt;(m)&lt;-[:ACTED_IN]-(coActors),<br>      (coActors)-[:ACTED_IN]-&gt;(m2)&lt;-[:ACTED_IN]-(cruise:Person {name:”Tom Cruise”})<br>RETURN tom, m, coActors, m2, cruise<br>　　请根据以下分析上面的两条语句：<img src="/images/match-4.png" alt="match-4.png"></p>
<p>　　删除所有节点<br>MATCH (n) OPTIONAL MATCH (n)-[r1]-() DELETE n,r1<br>　　查询所有节点<br>MATCH (n) RETURN n<br>MATCH (n {name:”A”})-[r1]-() DELETE n,r1</p>
<p>　　删除指定的关系<br>MATCH (n) OPTIONAL MATCH (n)-[r:IN {name:”A-M1”} ]-() DELETE r<br>　　等价于MATCH (n)-[r:IN {name:”A-M2”} ]-() DELETE r<br>　　同时删除多个关系<br>MATCH (n)-[r:IN]-() where r.name=”A-M2” or r.name=”A-M1” DELETE r</p>
<h2 id="u81EA_u5EFA_u6570_u636E"><a href="#u81EA_u5EFA_u6570_u636E" class="headerlink" title="自建数据"></a>自建数据</h2><p>CREATE (A:test {name:”A”}),(B:test {name:”B”}),(C:test {name:”C”}),(D:test {name:”D”}),<br> (M1:M {name:”M1”}),(M2:M {name:”M2”}),(M3:M {name:”M3”}),(M4:M {name:”M4”}),<br>    (A)-[:IN {name:”A-M1”}]-&gt;(M1),<br> (A)-[:IN {name:”A-M2”}]-&gt;(M2),<br> (B)-[:IN]-&gt;(M1),<br> (B)-[:IN]-&gt;(M2),<br> (B)-[:IN]-&gt;(M3),<br> (C)-[:IN]-&gt;(M1),<br> (C)-[:IN]-&gt;(M3),<br>(D)-[:IN]-&gt;(M3),<br> (D)-[:IN]-&gt;(M4)</p>
<p>查询与A关联的M，输出M1, M2<br>MATCH (tom:test {name:”A”})-[:IN]-&gt;(m) return m</p>
<p>查询带有自定关系的节点<br>MATCH (n)-[ {name:”A-M1”} ]-&gt;(xx) return xx<br>MATCH (n)-[:IN {name:”A-M1”} ]-&gt;(xx) return xx</p>
<p>输出B、C，注意，C只关联了M1，未关联M2，也输出了，但是未输出A(A作为了左侧的查询条件)<br>MATCH (tom:test {name:”A”})-[:IN]-&gt;(m)&lt;-[:IN]-(coActors) return coActors</p>
<p>输出M1 M2 M3<br>MATCH (tom:test {name:”A”})-[:IN]-&gt;(m)&lt;-[:IN]-(coActors),<br>      (coActors)-[:IN]-&gt;(m2)&lt;-[:IN]-(cocoActors)<br>RETURN m2</p>
<p>输出A、B、C、D，coActors的值为B、C，为何cocoActors的输出值没有排除B、C<br>MATCH (tom:test {name:”A”})-[:IN]-&gt;(m)&lt;-[:IN]-(coActors),<br>      (coActors)-[:IN]-&gt;(m2)&lt;-[:IN]-(cocoActors)<br>RETURN cocoActors</p>
<p>输出M3<br>MATCH (tom:test {name:”A”})-[:IN]-&gt;(m)&lt;-[:IN]-(coActors),<br>      (coActors)-[:IN]-&gt;(m2)&lt;-[:IN]-(cocoActors)<br>WHERE NOT (tom)-[:IN]-&gt;(m2)<br>RETURN m2</p>
<p>输出B、C、D<br>MATCH (tom:test {name:”A”})-[:IN]-&gt;(m)&lt;-[:IN]-(coActors),<br>      (coActors)-[:IN]-&gt;(m2)&lt;-[:IN]-(cocoActors)<br>WHERE NOT (tom)-[:IN]-&gt;(m2)<br>RETURN cocoActors</p>
<p>查询和A未合作过，但是和A的合作者合作过的人?????????<br>MATCH (tom:test {name:”A”})-[:IN]-&gt;(m)&lt;-[:IN]-(coActors),<br>      (coActors)-[:IN]-&gt;(m2)&lt;-[:IN]-(cocoActors)<br>WHERE NOT (tom)-[:IN]-&gt;(m2)<br>RETURN cocoActors.name AS Recommended, count(*) AS Strength ORDER BY Strength DESC</p>
<p>删除所有标签为Person和Movie的节点<br>MATCH (a:Person),(m:Movie) OPTIONAL MATCH (a)-[r1]-(), (m)-[r2]-() DELETE a,r1,m,r2</p>
<p>查询所有的节点<br>MATCH (n) RETURN n</p>
<h2 id="CREATE_MORE"><a href="#CREATE_MORE" class="headerlink" title="CREATE MORE"></a>CREATE MORE</h2><p>MATCH (ee:Person) WHERE ee.name = “Emil”<br>CREATE (js:Person { name: “Johan”, from: “Sweden”, learn: “surfing” }),<br>(ir:Person { name: “Ian”, from: “England”, title: “author” }),<br>(rvb:Person { name: “Rik”, from: “Belgium”, pet: “Orval” }),<br>(ally:Person { name: “Allison”, from: “California”, hobby: “surfing” }),<br>(ee)-[:KNOWS {since: 2001}]-&gt;(js),(ee)-[:KNOWS {rating: 5}]-&gt;(ir),<br>(js)-[:KNOWS]-&gt;(ir),(js)-[:KNOWS]-&gt;(rvb),<br>(ir)-[:KNOWS]-&gt;(js),(ir)-[:KNOWS]-&gt;(ally),<br>(rvb)-[:KNOWS]-&gt;(ally)</p>
<h2 id="Pattern_matching"><a href="#Pattern_matching" class="headerlink" title="Pattern matching"></a>Pattern matching</h2><p>MATCH (ee:Person)-[:KNOWS]-(friends) WHERE ee.name = “Emil” RETURN ee, friends</p>
<ul>
<li>MATCH 描述了从已知node查询nodes的模式</li>
<li>(ee)starts the pattern with a Person (qualified by WHERE)</li>
<li>-[:KNOWS]-匹配”KNOWS” relationships (in either direction)</li>
<li>(friends)存储Emil的朋友</li>
</ul>
<h2 id="Recommend__u63A8_u8350"><a href="#Recommend__u63A8_u8350" class="headerlink" title="Recommend 推荐"></a>Recommend 推荐</h2><p>　　Johan 将要学习 surf, 所有他也想找一个学习surfing的朋友:</p>
<p>MATCH (js:Person)-[:KNOWS]-()-[:KNOWS]-(surfer)<br>WHERE js.name = “Johan” AND surfer.hobby = “surfing”<br>RETURN DISTINCT surfer</p>
<ul>
<li>()圆括号忽略nodes</li>
<li>DISTINCT可能有多个路径匹配模式</li>
<li>surferwill contain Allison, a friend of a friend who surfs<h2 id="u53C2_u8003_u94FE_u63A5"><a href="#u53C2_u8003_u94FE_u63A5" class="headerlink" title="参考链接"></a>参考链接</h2></li>
</ul>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2016/01/17/database/3.neo4j入门/" data-id="cijzzpvhk00gn1cfsm7qev8qa" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/postgresql/">postgresql</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2016/01/17/database/4.分布式事务/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          分布式事务
        
      </div>
    </a>
  
  
    <a href="/2016/01/17/database/2.postgresql入门/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">postgresql入门</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Categories</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/cache/">cache</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/database/">database</a><span class="category-list-count">13</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/docker/">docker</a><span class="category-list-count">6</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/gis/">gis</a><span class="category-list-count">4</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/git/">git</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/go/">go</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/gradle/">gradle</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/groovy/">groovy</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/hadoop/">hadoop</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/java/">java</a><span class="category-list-count">18</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/linux/">linux</a><span class="category-list-count">4</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/log/">log</a><span class="category-list-count">11</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/mongodb/">mongodb</a><span class="category-list-count">14</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/mq/">mq</a><span class="category-list-count">6</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/mybatis/">mybatis</a><span class="category-list-count">9</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/netty/">netty</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/nginx/">nginx</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/nio/">nio</a><span class="category-list-count">19</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/nodejs/">nodejs</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/redis/">redis</a><span class="category-list-count">6</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/rpc/">rpc</a><span class="category-list-count">14</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/spring/">spring</a><span class="category-list-count">5</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/tomcat/">tomcat</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/zookeeper/">zookeeper</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/杂项/">杂项</a><span class="category-list-count">2</span></li></ul>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/tags/aop/">aop</a><span class="tag-list-count">8</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/aspectj/">aspectj</a><span class="tag-list-count">3</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/cache/">cache</a><span class="tag-list-count">3</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/classloader/">classloader</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/common-loggings/">common-loggings</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/commonjs/">commonjs</a><span class="tag-list-count">4</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/database/">database</a><span class="tag-list-count">10</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/docker/">docker</a><span class="tag-list-count">6</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/dubbo/">dubbo</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/fastdfs/">fastdfs</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/gclib/">gclib</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/geohash/">geohash</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/gis/">gis</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/git/">git</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/go/">go</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/gradle/">gradle</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/groovy/">groovy</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hadoop/">hadoop</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hessisan/">hessisan</a><span class="tag-list-count">3</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/java/">java</a><span class="tag-list-count">48</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/javassist/">javassist</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/kafka/">kafka</a><span class="tag-list-count">3</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/linux/">linux</a><span class="tag-list-count">4</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/log/">log</a><span class="tag-list-count">11</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/log4j/">log4j</a><span class="tag-list-count">4</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/logback/">logback</a><span class="tag-list-count">5</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/map/">map</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/memecached/">memecached</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mina/">mina</a><span class="tag-list-count">5</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mongodb/">mongodb</a><span class="tag-list-count">14</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mq/">mq</a><span class="tag-list-count">6</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mqtt/">mqtt</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mybatis/">mybatis</a><span class="tag-list-count">9</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/netty/">netty</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/nginx/">nginx</a><span class="tag-list-count">3</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/nio/">nio</a><span class="tag-list-count">5</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/nodejs/">nodejs</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/postgresql/">postgresql</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/protobuf/">protobuf</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/proxy/">proxy</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/push/">push</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/rabbitmq/">rabbitmq</a><span class="tag-list-count">3</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/redis/">redis</a><span class="tag-list-count">6</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/rpc/">rpc</a><span class="tag-list-count">14</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/sitemesh/">sitemesh</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/sld/">sld</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/slf4j/">slf4j</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/socket/">socket</a><span class="tag-list-count">7</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/spatialite-for-android/">spatialite for android</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/spi/">spi</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/spring/">spring</a><span class="tag-list-count">13</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/tomcat/">tomcat</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/transaction/">transaction</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/web/">web</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/xSocket/">xSocket</a><span class="tag-list-count">7</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/zbus/">zbus</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/zookeeper/">zookeeper</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/数据结构/">数据结构</a><span class="tag-list-count">2</span></li></ul>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/aop/" style="font-size: 15.38px;">aop</a> <a href="/tags/aspectj/" style="font-size: 11.54px;">aspectj</a> <a href="/tags/cache/" style="font-size: 11.54px;">cache</a> <a href="/tags/classloader/" style="font-size: 10px;">classloader</a> <a href="/tags/common-loggings/" style="font-size: 10px;">common-loggings</a> <a href="/tags/commonjs/" style="font-size: 12.31px;">commonjs</a> <a href="/tags/database/" style="font-size: 16.92px;">database</a> <a href="/tags/docker/" style="font-size: 13.85px;">docker</a> <a href="/tags/dubbo/" style="font-size: 10px;">dubbo</a> <a href="/tags/fastdfs/" style="font-size: 10px;">fastdfs</a> <a href="/tags/gclib/" style="font-size: 10.77px;">gclib</a> <a href="/tags/geohash/" style="font-size: 10px;">geohash</a> <a href="/tags/gis/" style="font-size: 10px;">gis</a> <a href="/tags/git/" style="font-size: 10.77px;">git</a> <a href="/tags/go/" style="font-size: 10px;">go</a> <a href="/tags/gradle/" style="font-size: 10px;">gradle</a> <a href="/tags/groovy/" style="font-size: 10px;">groovy</a> <a href="/tags/hadoop/" style="font-size: 10px;">hadoop</a> <a href="/tags/hessisan/" style="font-size: 11.54px;">hessisan</a> <a href="/tags/java/" style="font-size: 20px;">java</a> <a href="/tags/javassist/" style="font-size: 10px;">javassist</a> <a href="/tags/kafka/" style="font-size: 11.54px;">kafka</a> <a href="/tags/linux/" style="font-size: 12.31px;">linux</a> <a href="/tags/log/" style="font-size: 17.69px;">log</a> <a href="/tags/log4j/" style="font-size: 12.31px;">log4j</a> <a href="/tags/logback/" style="font-size: 13.08px;">logback</a> <a href="/tags/map/" style="font-size: 10px;">map</a> <a href="/tags/memecached/" style="font-size: 10.77px;">memecached</a> <a href="/tags/mina/" style="font-size: 13.08px;">mina</a> <a href="/tags/mongodb/" style="font-size: 19.23px;">mongodb</a> <a href="/tags/mq/" style="font-size: 13.85px;">mq</a> <a href="/tags/mqtt/" style="font-size: 10.77px;">mqtt</a> <a href="/tags/mybatis/" style="font-size: 16.15px;">mybatis</a> <a href="/tags/netty/" style="font-size: 10px;">netty</a> <a href="/tags/nginx/" style="font-size: 11.54px;">nginx</a> <a href="/tags/nio/" style="font-size: 13.08px;">nio</a> <a href="/tags/nodejs/" style="font-size: 10px;">nodejs</a> <a href="/tags/postgresql/" style="font-size: 10.77px;">postgresql</a> <a href="/tags/protobuf/" style="font-size: 10px;">protobuf</a> <a href="/tags/proxy/" style="font-size: 10px;">proxy</a> <a href="/tags/push/" style="font-size: 10px;">push</a> <a href="/tags/rabbitmq/" style="font-size: 11.54px;">rabbitmq</a> <a href="/tags/redis/" style="font-size: 13.85px;">redis</a> <a href="/tags/rpc/" style="font-size: 19.23px;">rpc</a> <a href="/tags/sitemesh/" style="font-size: 10px;">sitemesh</a> <a href="/tags/sld/" style="font-size: 10px;">sld</a> <a href="/tags/slf4j/" style="font-size: 10px;">slf4j</a> <a href="/tags/socket/" style="font-size: 14.62px;">socket</a> <a href="/tags/spatialite-for-android/" style="font-size: 10px;">spatialite for android</a> <a href="/tags/spi/" style="font-size: 10px;">spi</a> <a href="/tags/spring/" style="font-size: 18.46px;">spring</a> <a href="/tags/tomcat/" style="font-size: 10.77px;">tomcat</a> <a href="/tags/transaction/" style="font-size: 10px;">transaction</a> <a href="/tags/web/" style="font-size: 10px;">web</a> <a href="/tags/xSocket/" style="font-size: 14.62px;">xSocket</a> <a href="/tags/zbus/" style="font-size: 10px;">zbus</a> <a href="/tags/zookeeper/" style="font-size: 10.77px;">zookeeper</a> <a href="/tags/数据结构/" style="font-size: 10.77px;">数据结构</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/01/">January 2016</a><span class="archive-list-count">67</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/12/">December 2015</a><span class="archive-list-count">81</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/11/">November 2015</a><span class="archive-list-count">2</span></li></ul>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recents</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2016/01/30/资料/">(no title)</a>
          </li>
        
          <li>
            <a href="/2016/01/30/java/13.Classloader系列一/">ClassLoader系列一</a>
          </li>
        
          <li>
            <a href="/2016/01/29/hadoop/1.hadoop系列之源码编译/">hadoop系列一之源码编译</a>
          </li>
        
          <li>
            <a href="/2016/01/29/go/1.GO系列之入门/">Go系列一之入门</a>
          </li>
        
          <li>
            <a href="/2016/01/28/tomcat/2.tomcat性能优化/">tomcat性能优化</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2016 John Doe<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="http://libs.baidu.com/jquery/2.0.3/jquery.min.js"></script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css" type="text/css">
  <script src="/fancybox/jquery.fancybox.pack.js" type="text/javascript"></script>


<script src="/js/script.js" type="text/javascript"></script>

  </div>
</body>
</html>